import axios from "axios";

export const overall = () => {
  return axios.post("/api/v1.0/manager/3d/panel/config/overall");
}; //获取随机salt
export const salt = params => {
  return axios.post("/api/v1.0/auth/token/salt", params);
}; //获取随机salt
export const login = params => {
  return axios.post("/api/v1.0/auth/token/login", params);
}; //获取认证token
export const menuList = params => {
  return axios.post("/api/v1.0/auth/role/echo/auth/" + params);
}; //查询系统所有的菜单
// export const sysLogList = params => {
//   return axios.post("/api/v1.0/log/list/sys/page", params);
// }; //查询系统日志分页列表
export const sysLogList = params => {
  return axios.post("/api/v1.0/auth/log/list/opt/page", params);
}; //查询系统日志分页列表
export const sysLoginLogList = params => {
  return axios.post("/api/v1.0/auth/log/list/login/page", params);
}; //查询系统日志分页列表


//------智能系统------中大接口
//子系统配置
export const subsystemadd = params => {
  return axios.post("/api/v1.0/manager/subsystem/add", params);
}; //新增租户子系统
export const subsystembind = params => {
  return axios.post("/api/v1.0/manager/subsystem/bind", params);
}; //小区-租户子系统绑定
export const subsystemdelete = params => {
  return axios.post("/api/v1.0/manager/subsystem/delete", params);
}; //删除租户子系统
export const subsystemlistxqId = params => {
  return axios.post("/api/v1.0/manager/subsystem/list/" + params.xqId);
}; //租户子系统列表
export const subsystemupdate = params => {
  return axios.post("/api/v1.0/manager/subsystem/update", params);
}; //修改租户子系统

//----设备管理----
// /manager/device/selectMoIDByDe
export const selectMoIDByDe = params => {
  return axios.post("/api/v1.0/manager/device/selectMoIDByDe", params);
}; //机房设备
export const jfDeviceList = params => {
  return axios.post("/api/v1.0/manager/device/jfDeviceList", params);
}; //机房设备
export const iotdeviceadd = params => {
  return axios.post("/api/v1.0/manager/device/add", params);
}; //新增设备
export const iotdevicedelete = params => {
  return axios.post("/api/v1.0/manager/device/delete", params);
}; //删除设备
export const iotdevicepage = params => {
  return axios.post("/api/v1.0/manager/device/list", params);
}; //设备分页列表
export const iotdeviceupdate = params => {
  return axios.post("/api/v1.0/manager/device/update", params);
}; //修改设备
export const iotdevicebyid = params => {
  return axios.post("/api/v1.0/manager/device/id/" + params.id);
}; //设备

//导出设备模板
export const exportTemplateDevice = "/api/v1.0/manager/batch/export/template/device" //设备模板
export const batchImportDevice = params => {
  return axios.post("/api/v1.0/manager/batch/import/device",params);
}; //设备


//----产品管理----
export const syncPhysicalModel = params => {
  return axios.post("/api/v1.0/manager/device/sync/physical_model/"+params.productId);
}; //将所属该产品的设备物理模型同步

export const iotproductadd = params => {
  return axios.post("/api/v1.0/manager/product/add", params);
}; //新增产品
export const iotproductupdate = params => {
  return axios.post("/api/v1.0/manager/product/update", params);
}; //修改产品
export const iotproductdelete = params => {
  return axios.post("/api/v1.0/manager/product/delete", params.ids);
}; //删除产品
export const iotproductpage = params => {
  return axios.post("/api/v1.0/manager/product/list", params);
}; //产品分页列表
export const iotproductbyid = params => {
  return axios.post("/api/v1.0/manager/product/id/" + params.id);
}; //协议下拉列表
export const listSelect = params => {
  return axios.post("/api/v1.0/manager/product/dataList/" + params.projectId);
}; //项目-产品下拉列表
//======= 设备管理物模型 ======
//设备属性
export const devicepointadd = params => {
  return axios.post("/api/v1.0/manager/point/add", params);
}; //添加设备属性
export const devicepointdelete = params => {
  return axios.post("/api/v1.0/manager/point/delete", params);
}; //删除设备属性
export const devicepointupdate = params => {
  return axios.post("/api/v1.0/manager/point/update", params);
}; //修改设备属性
export const devicepointlist = params => {
  return axios.post("/api/v1.0/manager/point/list", params);
}; //设备属性列表

//----设备功能----
export const devicefunctionadd = params => {
  return axios.post("/api/v1.0/manager/function/add", params);
}; //添加设备功能
export const devicefunctiondelete = params => {
  return axios.post("/api/v1.0/manager/function/delete", params);
}; //删除设备功能
export const devicefunctionupdate = params => {
  return axios.post("/api/v1.0/manager/function/update", params);
}; //修改设备功能
export const devicefunctionlist = params => {
  return axios.post("/api/v1.0/manager/function/list", params);
}; //设备属性列表

//----设备事件----
export const deviceEventadd = params => {
  return axios.post("/api/v1.0/manager/event/add", params);
}; //添加设备功能
export const deviceEventdelete = params => {
  return axios.post("/api/v1.0/manager/event/delete", params);
}; //删除设备功能
export const deviceEventupdate = params => {
  return axios.post("/api/v1.0/manager/event/update", params);
}; //修改设备功能
export const deviceEventlist = params => {
  return axios.post("/api/v1.0/manager/event/list", params);
}; //设备功能列表

export const unitlist = params => {
  return axios.post("/api/v1.0/manager/unit/list", params);
}; //单位列表

/*
    组织管理
*/
export const orgTree = params => {
  return axios.post("/api/v1.0/auth/org/tree", params);
}; //查询所有组织列表
export const saveTree = params => {
  return axios.post("/api/v1.0/auth/org/add", params);
}; //添加组织树
export const updateTree = params => {
  return axios.post("/api/v1.0/auth/org/update", params);
}; //修改组织树
export const deleteTree = params => {
  return axios.post("/api/v1.0/auth/org/delete", params);
}; //删除组织
export const authority = params => {
  return axios.post(
    "/api/v1.0/auth/resource/list/authority/" +
    params.menuId +
    "/" +
    params.bindMenuid
  );
}; //查看用户菜单有权限资源列表

/*
    角色管理
*/
export const roletreeList = managerId => {
  return axios.post("/api/v1.0/auth/role/tree");
}; //查询系统角色树状列表
export const addroletreeList = params => {
  return axios.post("/api/v1.0/auth/role/add", params);
}; //添加角色
export const updateroletreeList = params => {
  return axios.post("/api/v1.0/auth/role/update", params);
}; //修改角色信息
export const deleteroletreeList = params => {
  return axios.post("/api/v1.0/auth/role/delete", params);
}; //删除角色
export const bindmenu = params => {
  return axios.post("/api/v1.0/auth/role/bind/menu", params);
}; //角色绑定菜单
export const bindmenuroleId = roleId => {
  return axios.post("/api/v1.0/auth/role/menu/" + roleId);
}; //管理员角色回显
export const managerrole = managerId => {
  return axios.post("/api/v1.0/auth/manager/role/" + managerId);
}; //角色菜单回显
export const bindmanagerrole = params => {
  return axios.post("/api/v1.0/auth/manager/bind/role", params);
}; //管理员绑定角色
export const roleTreeBtn = params => {
  return axios.post("/api/v1.0/menu/tree/" + params.roleId);
}; //查询角色拥有的菜单
export const echoAuth = params => {
  return axios.post("/api/v1.0/auth/role/echo/auth/" + params);
}; //角色列表回显（这个是最新的）

//小区
// export const xqSelectList = (params) => { return axios.post('/api/v1.0/xq/list/select', params) } //查询项目列表
export const xqSelectList = params => {
  return axios.post("/api/v1.0/auth/project/list/select", params);
}; //查询项目列表

export const authAddManager = params => {
  return axios.post("/api/v1.0/auth/manager/add", params);
}; //添加管理员
export const authDeleteManager = params => {
  return axios.post("/api/v1.0/auth/manager/delete", params);
}; //删除管理员
export const authManagerList = params => {
  return axios.post("/api/v1.0/auth/manager/list/page", params);
}; //查询管理员分页列表
export const authUpdateManager = params => {
  return axios.post("/api/v1.0/auth/manager/update", params);
}; //修改管理员信息
export const authManagerInfo = params => {
  return axios.post("/api/v1.0/auth/manager/info", params);
}; //个人中心-管理员个人资料
export const authManagerPassword = params => {
  return axios.post("/api/v1.0/auth/manager/update/password", params);
}; //管理员修改登录密码

//用户模块
export const userAdd = params => {
  return axios.post("/api/v1.0/auth/user/add", params);
}; //添加用户账号
export const userDelete = params => {
  return axios.post("/api/v1.0/auth/user/delete/"+ params.id);
}; //删除用户账号
export const userListPage = params => {
  return axios.post("/api/v1.0/auth/user/list/page", params);
}; //查用户账号
export const userUpdate = params => {
  return axios.post("/api/v1.0/auth/user/update", params);
}; //修改用户账号
export const userReset = params => {
  return axios.post("/api/v1.0/auth/user/reset/"+ params.id);
}; //用户账号重置


export const addDeviceOperations = params => {
  return axios.post(
    "/api/v1.0/device-plan/addDeviceOperations",
    params
  );
}; //设备管理add
export const getDevOperationsList = params => {
  return axios.post(
    "/api/v1.0/device-plan/getDevOperationsList",
    params
  );
}; //设备管理列表
export const deleteDeviceOperations = params => {
  return axios.post(
    "/api/v1.0/device-plan/deleteDeviceOperations",
    params
  );
}; //删除设备管理列表
export const updDeviceOperations = params => {
  return axios.post(
    "/api/v1.0/device-plan/updDeviceOperations",
    params
  );
}; //修改设备管理列表
export const getDeviceClassifyList = params => {
  return axios.post(
    "/api/v1.0/device-plan/getDeviceClassifyList",
    params
  );
}; //设备类别配置列表
export const addDeviceClassify = params => {
  return axios.post("/api/v1.0/device-plan/addDeviceClassify", params);
}; //设备类别配置add
export const deleteDeviceClassify = params => {
  return axios.post(
    "/api/v1.0/device-plan/deleteDeviceClassify",
    params
  );
}; //设备类别配置删除
export const getDeviceClassifyXq = params => {
  return axios.post(
    "/api/v1.0/device-plan/getDeviceClassifyXq",
    params
  );
}; //根据xqid查设备类别
export const updDeviceClassify = params => {
  return axios.post("/api/v1.0/device-plan/updDeviceClassify", params);
}; //修改设备类别

/**
 * 门禁
 * @param {*} params
 * @returns
 */
export const openHwDev = params => {
  return axios.post(
    "/api/v1.0/door/openHwDev/" +
    params.account +
    "/" +
    params.xqId +
    "/" +
    params.id +
    "/" +
    params.name
  );
}; //霍尼门禁远程开门
export const getAcDoorOperLog = params => {
  return axios.post("/api/v1.0/door/getAcDoorOperLog", params);
}; //门禁日志查询
export const carParkSummaryData = params => {
  return axios.post("/api/v1.0/ketopCar/carParkSummaryData", params);
}; // 停车场车位统计
export const carParkSummaryInfo = params => {
  return axios.post("/api/v1.0/ketopCar/carParkSummaryInfo", params);
}; // 停车场各车场详情
export const carParkRecords = params => {
  return axios.post("/api/v1.0/ketopCar/carParkRecords", params);
}; // 停车记录
export const carParkRecordsFee = params => {
  return axios.post("/api/v1.0/ketopCar/carParkRecordsFee", params);
}; // 停车记录对应的停车费金额
export const syncFushiDevice = params => {
  return axios.post("/api/v1.0/door/syncFushiDevice/" + params);
}; //同步富士门禁设备
export const getAcDevlist = params => {
  return axios.post("/api/v1.0/door/getAcDevlist", params);
}; //门禁设备查询
export const remoteOpenDoor = params => {
  return axios.post(
    "/api/v1.0/door/remoteOpenDoor/" +
    params.account +
    "/" +
    params.devId
  );
}; //v远程开门
export const fsRemoteOpenDoor = params => {
  return axios.post(
    "/api/v1.0/door/remoteOpenDoor/" +
    params.xqId +
    "/" +
    params.devNo +
    "/" +
    params.doorNo
  );
}; // 富士分体式门禁远程开门(deviceFushi-->deviceFushiDoor列表不为空)
export const freshHwLevels = params => {
  return axios.post("/api/v1.0/door/freshHwLevels/" + params);
}; //刷新霍尼门禁权限列表
export const delAcDevlist = params => {
  return axios.post("/api/v1.0/door/delAcDevlist", params);
}; //删除门禁设备

/**
 * 停车场
 */

export const getParkInfo = params => {
  return axios.post("/api/v1.0/app/park/parkingSpaceInfo", params);
}; // 停车场信息
//manager/car/carDevList
export const parkingSpaceInfo = params => {
  return axios.post("/api/v1.0/app/dnakeCar/parkingSpaceInfo", params);
}; // 查询停车场车位信息
export const carRecords = params => {
  return axios.post("/api/v1.0/manager/car/carRecords", params);
}; // 查询停车场车辆记录
export const getCarDevs = params => {
  return axios.post("/api/v1.0/manager/car/carDevList", params);
}; // 停车场设备
export const onlinePayRecords = params => {
  // return axios.post("/api/v1.0/app/park/onlinePayRecords", params);
  return axios.post("/api/v1.0/manager/car/carTempFeeList", params);
}; // 缴费列表
export const onlinePayRecordsSum = params => {
  return axios.post("/api/v1.0/app/park/onlinePayRecordsSum", params);
}; // 线上缴费统计
export const visitorBookRecords = params => {
  return axios.post("/api/v1.0/dnakeCar/visitorBookRecords", params);
}; // 访客预约记录
export const visitorAdd = params => {
  return axios.post("/api/v1.0/dnakeCar/visitorAdd", params);
}; // 访客预约
export const visitorDel = params => {
  return axios.post(
    "/api/v1.0/dnakeCar/visitorDel/" + params.cph + "/" + params.xqId
  );
}; // 访客取消
export const getCarMonthFee = params => {
  return axios.post(
    "/api/v1.0/dnakeCar/getCarMonthFee/" + params.xqid
  );
}; // 获取月租费
export const addMonthFee = params => {
  return axios.post("/api/v1.0/dnakeCar/addMonthFee", params);
}; // 添加月租费
export const updateMonthFee = params => {
  return axios.post("/api/v1.0/dnakeCar/updateMonthFee", params);
}; // 月租车月费用编辑
export const getPropertyTypeList = params => {
  return axios.post(
    "/api/v1.0/pmapply/type/pmtype/getPropertyTypeList",
    params
  );
}; //查询物业类型管理
export const addPropertyTypeList = params => {
  return axios.post(
    "/api/v1.0/pmapply/type/pmtype/addPropertyTypeList",
    params
  );
}; //添加物业类型管理
export const updatePropertyTypeList = params => {
  return axios.post(
    "/api/v1.0/pmapply/type/pmtype/updatePropertyTypeList",
    params
  );
}; //修改物业类型管理
export const deletePropertyTypeList = params => {
  return axios.post(
    "/api/v1.0/pmapply/type/pmtype/deletePropertyTypeList",
    params
  );
}; //删除物业类型管理
export const carRentPayRecordsSum = params => {
  return axios.post("/api/v1.0/dnakeCar/carRentPayRecordsSum", params);
}; // 线上缴费统计(月租车)
export const carWebRentFeeAdd = params => {
  return axios.post("/api/v1.0/app/park/carWebRentFeeAdd", params);
}; // web后台车辆充钱?

export const getWebPayData = params => {
  return axios.post(
    "/api/v1.0/dnakeCar/getWebPayData/" +
    params.cph +
    "/" +
    params.xqId
  );
}; // web 后台收现金通行
export const rentPayRecords = params => {
  return axios.post("/api/v1.0/dnakeCar/rentPayRecords", params);
}; // 月租车缴费查询

/*
    一卡通
*/

export const temporaryPasscard = params => {
  return axios.post(
    "/api/v1.0/housePasscard/temporaryPasscard",
    params
  );
}; //临时授权/实体卡授权
export const restoreUsersPasscard = params => {
  return axios.post(
    "/api/v1.0/housePasscard/restoreUsersPasscard",
    params
  );
}; //一键还原用户通行证
export const recallCard = params => {
  return axios.post("/api/v1.0/housePasscard/recallCard", params);
}; //回收卡片数据
export const getCardPasscardDetail = params => {
  return axios.post(
    "/api/v1.0/housePasscard/getCardPasscardDetail",
    params
  );
}; //获取卡片通行证数据
export const showPasscardRecords = params => {
  return axios.post(
    "/api/v1.0/housePasscard/showPasscardRecords",
    params
  );
}; //用户通行证/临时授权/实体卡授权记录查询
export const blackWhiteCards = params => {
  return axios.post(
    "/api/v1.0/housePasscard/blackWhiteRecallCards",
    params
  );
}; //白名单/黑名单/回收操作
export const getCodeSection = params => {
  return axios.post(
    "/api/v1.0/housePasscard/getCodeSection/" + params.xqId
  );
}; //获取发卡秘钥，扇区
export const carInfo = params => {
  return axios.post("/api/v1.0/app/park/carInfo", params);
}; // 查询车辆信息列表
export const delCar = params => {
  return axios.post("/api/v1.0/app/park/delCar", params);
}; // 删除车辆信息
export const getDevSetting = params => {
  return axios.post("/api/v1.0/door/getDevSetting/" + params.xqId);
}; //获取已勾选的门禁设备类型
export const getAkxDoors = params => {
  return axios.post("/api/v1.0/door/getAkxDoors", params);
}; //获取设备
export const getAkxDoorsSection = params => {
  return axios.post(`/api/v1.0/door/getAkxSection/${params}`);
}; //获取设备的区域列表
export const handleAkxDoor = params => {
  return axios.post(
    `/api/v1.0/door/handleAkxDoor/${params.xqId}/${params.doorId}/${params.how}`
  );
}; // 开门 / 关门
export const getAkxDoorRecords = params => {
  return axios.post("/api/v1.0/door/getAkxDoorRecords", params);
}; // 获取开门记录
export const delPoint = params => {
  return axios.post("/api/v1.0/manager/2d/delEquipmentPoint", params);
}; // 删除点位

/*
    底图绑点  cad
*/
export const systemList = params => {
  return axios.post("/api/v1.0/manager/2d/systemDevice", params);
};//系统列表

export const uploadFloorImg = params => {
  // return axios.post("/api/v1.0/manager/backgroud/addDetail", params);
  return axios.post("/api/v1.0/manager/space_map/edit", params);
}; // 上传底图
export const getFloorImg = params => {
  // return axios.post("/api/v1.0/manager/backgroud/detailList", params);
  return axios.post("/api/v1.0/manager/space_map/config", params);

}; // 获取底图
export const deviceBindPoint = params => {
  // return axios.post("/api/v1.0/manager/2d/equipmentPoint", params);
  return axios.post('/api/v1.0/manager/space_device/bind', params)
}; // 底图绑点
export const getPointBySecId = (params) => { return axios.post('/api/v1.0/manager/space_device/list', params) }// 获取绑点设备
export const getBindDeviceinfo = (params) => { return axios.post('/api/v1.0/manager/space_device/info/'+ params.deviceId) }// 获取绑点设备


export const getDevLocation = params => {
  return axios.post("/api/v1.0/destine/points/List", params);
}; // 查询设备位置
export const getDeviceType = params => {
  return axios.post("/api/v1.0/device/systemDevice", params);
}; // 查询设备类型
export const getDeviceInfo = params => {
  return axios.post("/api/v1.0/device/selectDeviceList", params);
}; // 查询设备信息
export const getDoorDevList = params => {
  return axios.post("/api/v1.0/door/getAkxDoors", params);
}; // 查询设备列表
// export const getPointBySecId = params => {
//   // return axios.post("/api/v1.0/manager/2d/selectDeviceId", params);
//   return axios.post("/api/v1.0/manager/space_device/list", params);
// }; // 根据区域查询设备列表
export const getPointBySecIdState = (params) => { return axios.post('/api/v1.0/manager/space_device/list/state',params) }// 获取绑点设备(含设备状态)

export const getCameraList = () => {
  return axios.post(`/api/v1.0/app/dds/icc/getIccDevList/1/9999`);
}; // 获取楼栋
export const getCameraDevInfo = params => {
  return axios.post(`/api/v1.0/app/dds/icc/getIccDevInfo/${params}`);
}; // 获取监控设备
export const refreshVideo = () => {
  return axios.post(`/api/v1.0/app/dds/icc/getThingBack`);
}; // 刷新视频回调

/*
安防入侵
*/
export const getAlarmStatus = () => {
  return axios.post("/api/v1.0/app/intrude/status");
}; // 获取安防设备状态
export const getAlarmRecords = params => {
  return axios.post(`/api/v1.0/app/intrude/his`, params);
}; // 获取安防报警历史记录
export const getDeviceMap = params => {
  return axios.post(
    `/api/v1.0/app/intrude/addAddressI/${params.devType}/${params.current}/${params.size}`
  );
}; // 获取设备对照表
export const addDeviceMap = params => {
  return axios.post(`/api/v1.0/app/intrude/addAddressIP`, params);
}; // 添加数据对照表
export const delDeviceMap = params => {
  return axios.post(`/api/v1.0/app/intrude/delAddressIP/${params}`);
}; // 删除数据对照表
export const updateDeviceMap = params => {
  return axios.post(`/api/v1.0/app/intrude/upAddressIP`, params);
}; // 修改数据对照表

/*
首页
*/
export const addHomeVideo = params => {
  return axios.post(`/api/v1.0/app/dds/icc/addMainUrl`, params);
}; // 获取安防报警历史记录
export const getHomeVideo = () => {
  return axios.post(`/api/v1.0/app/dds/icc/getMainUrl`);
}; // 获取安防报警历史记录
export const delHomeVideo = params => {
  return axios.post(`/api/v1.0/app/dds/icc/delMainUrl/${params}`);
}; // 获取安防报警历史记录
export const getHotelPeople = params => {
  return axios.post(`/api/v1.0/ibms/portal/info`, params);
}; // 获取防疫酒店人员信息
export const getTotalEquipment = () => {
  return axios.post(`/api/v1.0/ibms/portal/device`);
}; // 获取设备总数
export const getTotalMonitor = () => {
  return axios.post(`/api/v1.0/ibms/portal/monitor`);
}; // 获取监控数量
export const getTotalCar = params => {
  return axios.post(`/api/v1.0/ibms/portal/car/statistics`, params);
}; // 获取车位统计
export const getTotalTraffic = params => {
  return axios.post(`/api/v1.0/ibms/portal/car/analysis`, params);
}; // 获取车流分析
export const getTotalIn_Out = params => {
  return axios.post(`/api/v1.0/ibms/portal/access/statistics`, params);
}; // 获取进出入统计
export const getVisitor_analyse = params => {
  return axios.post(`/api/v1.0/ibms/portal/visitors/analysis`, params);
}; // 获取进出入统计
export const getReal_alarm_time = params => {
  return axios.post(`/api/v1.0/ibms/portal/alarm/statistics`, params);
}; // 获取实时报警
export const getAlarmList = params => {
  return axios.post(`/api/v1.0/ibms/portal/alarm/info`, params);
}; // 获取实时报警
export const sectionTree = params => {
  return axios.post("/api/v1.0/auth/section/tree", params);
}; //区域树

// 基础配置
// 基础配置 - 项目管理
export const xqList = params => {
  return axios.post("/api/v1.0/auth/project/list/page", params);
}; //查询项目分页列表
export const xqAddList = params => {
  return axios.post("/api/v1.0/auth/project/add", params);
}; //添加新项目
export const xqDeleteList = params => {
  return axios.post("/api/v1.0/auth/project/delete", params);
}; //删除项目操作
export const xqUpdateList = params => {
  return axios.post("/api/v1.0/auth/project/update", params);
}; //修改项目信息

// 基础配置 - 区域管理
export const sectionList = params => {
  return axios.post("/api/v1.0/auth/section/list/page", params);
}; //查询区域分页列表
export const sectionAddList = params => {
  return axios.post("/api/v1.0/auth/section/add", params);
}; //添加区域
export const sectionDeleteList = params => {
  return axios.post("/api/v1.0/auth/section/delete", params);
}; //删除区域
export const sectionUpdateList = params => {
  return axios.post("/api/v1.0/auth/section/update", params);
}; //修改区域

export const houseList = (params) => { return axios.post('/api/v1.0/house/list/page', params) } //查询房间分页列表
export const exportHouseManager = (params) => { return '/api/v1.0/export/house/manager?' + params } // 导出员工信息
// export const getCostItemList = () => { return axios.post('/api/v1.0/fms/cost/item/config/list') } //查询费项

//设备运维
//服务时限
export const addPatrolOptions = (params) => { return axios.post('/api/v1.0/manager/device_plan/addPatrolOptions', params) } //添加服务时限
export const updPatrolOptions = (params) => { return axios.post('/api/v1.0/manager/device_plan/updPatrolOptions', params) } //添加服务时限
export const getPatrolOptionsList = (params) => { return axios.post('/api/v1.0/manager/device_plan/getPatrolOptionsList', params) } //添加服务时限
export const deletePatrolOptions = (params) => { return axios.post('/api/v1.0/manager/device_plan/deletePatrolOptions', params) } //删除服务时限

//运维检查项
export const getDeviceExamineList = (params) => { return axios.post('/api/v1.0/manager/device_plan/getDeviceExamineList', params) } //查询检查项列表
export const addDeviceExamine = (params) => { return axios.post('/api/v1.0/manager/device_plan/addDeviceExamine', params) } //添加检查项
export const deleteDeviceExamine = (params) => { return axios.post('/api/v1.0/manager/device_plan/deleteDeviceExamine', params) } //删除检查项
export const updDeviceExamine = (params) => { return axios.post('/api/v1.0/manager/device_plan/updDeviceExamine', params) } //修改检查项
export const pjIdBayDeviceExamineList = (params) => { return axios.post('/api/v1.0/manager/device_plan/pjIdBayDeviceExamineList/' + params.projectId) }//查询检查项下拉列表
//运维设备分组
export const devicepjToList = (params) => { return axios.post('/api/v1.0/manager/device/pjToList/' + params.projectId) } //根据项目id查询设备
export const getDeviceGroupingList = (params) => { return axios.post('/api/v1.0/manager/device_plan/getDeviceGroupingList', params) } //查询分组列表
export const updDeviceGrouping = (params) => { return axios.post('/api/v1.0/manager/device_plan/updDeviceGrouping', params) } //修改分组信息
export const deleteDeviceGrouping = (params) => { return axios.post('/api/v1.0/manager/device_plan/deleteDeviceGrouping', params) } //删除分组信息
export const addDeviceGrouping = (params) => { return axios.post('/api/v1.0/manager/device_plan/addDeviceGrouping', params) } //添加分组信息

//运维人员
export const addInvestigators = (params) => { return axios.post('/api/v1.0/manager/device_plan/addInvestigators', params) } //添加运维人员
export const deleteInvestigators = (params) => { return axios.post('/api/v1.0/manager/device_plan/deleteInvestigators', params) } //删除运维人员
export const updInvestigators = (params) => { return axios.post('/api/v1.0/manager/device_plan/updInvestigators', params) } //修改运维人员
export const getInvestigatorsList = (params) => { return axios.post('/api/v1.0/manager/device_plan/getInvestigatorsList', params) } //查询运维人员

//运维计划
export const addDevicePlan = (params) => { return axios.post('/api/v1.0/manager/device_plan/addDevicePlan', params) } //添加运维计划
export const deleteDevicePlan = (params) => { return axios.post('/api/v1.0/manager/device_plan/deleteDevicePlan', params) } //删除运维计划
export const getDevicePlanjhlist = (params) => { return axios.post('/api/v1.0/manager/device_plan/getDevicePlan', params) } //运维计划列表
export const updDevicePlan = (params) => { return axios.post('/api/v1.0/manager/device_plan/updDevicePlan', params) } //修改运维计划

//运维任务
export const checkPlanDetails = (params) => { return axios.post('/api/v1.0/manager/device_plan/checkPlanDetails', params) } //审核运维任务
export const sendPlan = (params) => { return axios.post('/api/v1.0/manager/device_plan/sendPlan', params) } //审核运维任务
export const getDevicePlanDetails = (params) => { return axios.post('/api/v1.0/manager/device_plan/getDevicePlanDetails', params) } //运维任务列表
export const updDevicePlanDetails = (params) => { return axios.post('/api/v1.0/manager/device_plan/updDevicePlanDetails', params) } //修改运维任务
export const deletePlanDetails = (params) => { return axios.post('/api/v1.0/manager/device_plan/deletePlanDetails', params) } //删除运维任务

//大华监控
export const getMonitorList = (params) => { return axios.post(`/api/v1.0/manager/monitor/getVideoMonitorDev`,params) } //获取大华监控设备
export const getChannelData = (params) => { return axios.post(`/api/v1.0/transfer/dahua/video/getChannelData/`+params.id) } //根据绑点id获取大华监控设备
export const OnPtzDirctCtrl = (params) => { return axios.post('/api/v1.0/manager/monitor/intrude/OnPtzDirctCtrl/'+ params.devCode+'/'+params.type) } //云台控制

// export const getMonitorList = (params) => { return axios.post(`/api/v1.0/manager/monitor/getVideoMonitorDev/${params.xqId}/${params.current}/${params.size}`) } //获取大华监控设备

//模板配置
export const profileAdd = (params) => { return axios.post('/api/v1.0/manager/profile/add', params) } //模板添加
export const profileDelete = (params) => { return axios.post(`/api/v1.0/manager/profile/delete/${params.id}`) } //模板删除
export const profileById = (params) => { return axios.post(`/api/v1.0/manager/profile/profile/id/${params.id}`) } //模板根据id查询
export const profileList = (params) => { return axios.post('/api/v1.0/manager/profile/list', params) } //模板查询列表
export const profileUpdate = (params) => { return axios.post('/api/v1.0/manager/profile/update', params) } //模板修改
export const dictionaryProfile = (params) => { return axios.get('/api/v1.0/manager/dictionary/profile', params) } //模板下拉列表

//点位模板
export const pointConfigAdd = (params) => { return axios.post('/api/v1.0/manager/point_config/add', params) } //添加
export const pointConfigDelete = (params) => { return axios.post(`/api/v1.0/manager/point_config/delete/${params.id}`) } //删除
export const pointConfigList = (params) => { return axios.post('/api/v1.0/manager/point_config/list', params) } //查询列表
export const pointConfigUpdate = (params) => { return axios.post('/api/v1.0/manager/point_config/update', params) } //修改
export const pointConfigById = (params) => { return axios.get(`/api/v1.0/manager/point_config/id/${params.id}`) } //根据id查询
export const pointConfigByDeviceId = (params) => { return axios.get(`/api/v1.0/manager/point_config/device_id/${params.deviceId}`) } //
export const pointConfigByProfileId = (params) => { return axios.post(`/api/v1.0/manager/point_config/profile_id/profileId`,params) } //
export const pointConfigunit = (params) => { return axios.get(`/api/v1.0/manager/point_config/unit`,params) } //

//驱动管理配置
export const driverinfoadd = (params) => { return axios.post('/api/v1.0/manager/driver_info/add/batch', params) } //
export const driverinfodelete = (params) => { return axios.post('/api/v1.0/manager/driver_info/delete/'+ params.id) } //
export const driverinfoupdate = (params) => { return axios.post('/api/v1.0/manager/driver_info/update', params) } //
export const driverinfolist = (params) => { return axios.post('/api/v1.0/manager/driver_info/list', params) } //
export const driverattribute = (params) => { return axios.get('/api/v1.0/manager/dictionary/driver_attribute', params) } //驱动属性树形
export const driverselect = (params) => { return axios.post('/api/v1.0/manager/driver/select') } //驱动下拉列表


//位号配置
export const pointinfoadd = (params) => { return axios.post('/api/v1.0/manager/point_info/add/batch', params) } //
export const pointinfodelete = (params) => { return axios.post('/api/v1.0/manager/point_info/delete/'+ params.id) } //
export const pointinfoupdate = (params) => { return axios.post('/api/v1.0/manager/point_info/update', params) } //
export const pointinfolist = (params) => { return axios.post('/api/v1.0/manager/point_info/list', params) } //
export const dictionarypoint = (params) => { return axios.get('/api/v1.0/manager/dictionary/point/'+ params.parent) } //所属位号
export const dictionarypointattribute = (params) => { return axios.get('/api/v1.0/manager/dictionary/point_attribute', params) } //位号所属属性

// export const commandread = (params) => { return axios.post('/api/v1.0/manager/command/read', params) } //读数据
//data/point_value/group
export const commandread = (params) => { return axios.post('/api/v1.0/data/point_value/group', params) } //读数据
export const commandwrite = (params) => { return axios.post('/api/v1.0/manager/command/write', params) } //写数据

//保修管理
export const billrepairApp = (params) => {
  return axios.post('/api/v1.0/manager/PmRepair/addPmRepair', params)
}
export const getRepairData = (params) => {//
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/repairData', params)
}
export const delRepairData = (params) => {//删除
  return axios.post('/api/v1.0/manager/PmRepair/deleteRepairData', params)
}
export const pmtypeUpdaData = (params) => {//派单
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/updaData', params)
}
export const jiedanPmRepairc = (params) => {//接单
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/jiedanPmRepairc', params)
}
export const pmtypeOrvuedata = (params) => {//完成
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/orvuedata', params)
}
export const getupdatedata = (params) =>{ //审核完成
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/getupdatedata', params)
}
export const closedate = (params) => {//关单
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/closedate', params)
}
export const pmtypCheckdate = (params) => {//关单审核
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/checkdate', params)
}
export const getRepairComment = (params) => {//详情
  return axios.post('/api/v1.0/manager/PmRepair/pmtype/getRepairComment', params)
}

//语音对接
export const intrudeAddAddressIP = (params) => {//添加语音信息
  return axios.post('/api/v1.0/manager/app/intrude/addAddressIP', params)
}
export const intrudedelAddressIP = (params) => {//添加语音信息
  return axios.post('/api/v1.0/manager/app/intrude/delAddressIP/'+params.id)
}
export const seleAddAddressIP = (params) => {//添加语音信息
  return axios.post('/api/v1.0/manager/app/intrude/addAddressI/'+params.type+'/'+params.pageNum+'/'+params.pageSize)
  }
  //霍尼门禁
  export const hwAcshandleDoor = (params) => {//霍尼门禁控制
    return axios.post('/api/v1.0/manager/hwAcs/handleDoor/'+params.sn+'/'+params.how)
  }
  export const hwAlarmDevArm = (params) => {//霍尼报警布防
    return axios.post('/api/v1.0/manager/hwAlarm/devArm/'+params.sn+'/'+params.how)
  } 
  export const hwAlarmDevDisArm = (params) => {//霍尼报警撤防
    return axios.post('/api/v1.0/manager/hwAlarm/devDisArm/'+params.sn)
  }
  
  //策略
  export const engineInstanceAdd = (params) => {//添加规则实例
    return axios.post('/api/v1.0/rule/engine_instance/add', params);
  }
  export const engineInstanceDelete = (params) => {//删除规则实例
    return axios.post('/api/v1.0/rule/engine_instance/delete/'+params.id);
  }
  export const engineInstanceExecute = (params) => {//执行规则实例
    return axios.post('/api/v1.0/rule/engine_instance/execute/'+params.id);
  }
  export const engineInstanceId = (params) => {//查看规则实例详情
    return axios.post('/api/v1.0/rule/engine_instance/id/'+params.id);
  }
  export const engineInstanceList = (params) => {//规则实例列表
    return axios.post('/api/v1.0/rule/engine_instance/list',params);
  }
  export const engineInstancePage = (params) => {//规则实例分页列表
    return axios.post('/api/v1.0/rule/engine_instance/list/page', params);
  }
  export const engineInstanceStartId = (params) => {//启动规则
    return axios.post('/api/v1.0/rule/engine_instance/start/'+params.id);
  }
  export const engineInstanceStopId = (params) => {//停止规则
    return axios.post('/api/v1.0/rule/engine_instance/stop/'+params.id);
  }
  export const engineInstanceUpdate = (params) => {//更新规则实例
    return axios.post('/api/v1.0/rule/engine_instance/update', params);
  }
  export const subsystemSection = (params) => {//
    return axios.post('/api/v1.0/manager/space_device/subsystem/section/'+params.projectId+'/'+params.subsystemCode );
  }
  //报警日志
  export const eventDevice = (params) => {//报警日志
    return axios.post('/api/v1.0/manager/event/device', params);
  }
  export const eventConfirm = (params) => {//报警日志确认
    return axios.post('/api/v1.0/manager/event/confirm', params);
  }


  //能耗收费项配置（华盛挪过来的）
  export const houseBindTemp = (params) => { return axios.post('api/v1.0/fms/house/charge/standard/bind', params) } //房间绑定模板
  export const houseBindValid = (params) => { return axios.post('api/v1.0/fms/house/charge/standard/bind/valid', params) } //校验房间是否绑定过模板
  export const houseBindDel = (params) => { return axios.post('api/v1.0/fms/house/charge/standard/delete/' + params) } //删除房间收费标准模板
  export const houseBindDetail = (params) => { return axios.post('api/v1.0/fms/house/charge/standard/detail/' + params) } //房间收费标准模板详情
  export const houseBindList = (params) => { return axios.post('api/v1.0/fms/house/charge/standard/list', params) } //房间收费标准模板分页列表
  export const houseBindUpdate = (params) => { return axios.post('api/v1.0/fms/house/charge/standard/update', params) } //修改房间收费标准模板

  //费项配置
  export const addCostItem = (params) => { return axios.post('api/v1.0/fms/cost/item/config/add', params) } //新增费项
  export const updateCostItem = (params) => { return axios.post('api/v1.0/fms/cost/item/config/update', params) } //修改费项
  export const getCostItemList = () => { return axios.post('api/v1.0/fms/cost/item/config/list') } //查询费项
  export const deleteCostItem = (params) => { return axios.post('api/v1.0/fms/cost/item/config/delete', params) } //删除费项

  export const meterconfiglist = (params) => { return axios.post('api/v1.0/sys/meter/config/list/' + params.xqId) } //查询仪表类型
//财务管理-收费标准模板配置
export const chargeStandardTempList = (params) => { return axios.post('api/v1.0/charge/standard/template/list', params) } //收费标准模板列表
export const chargeStandardTempAdd = (params) => { return axios.post('api/v1.0/charge/standard/template/add', params) } //添加收费标准模板
export const chargeStandardTempDelete = (params) => { return axios.post('api/v1.0/charge/standard/template/delete', params) } //删除收费标准模板
export const chargeStandardTempUpdate = (params) => { return axios.post('api/v1.0/charge/standard/template/update', params) } //修改收费标准模板
//找系统字典
export const getDictionary = (params) => { return axios.post('api/v1.0/sys/dictionary/list/page', params) } //查找系统字典分页列表
export const getDictionaryByType = (params) => { return axios.post(`api/v1.0/sys/dictionary/list/select/${params.type}/${params.resource}`) } //查找系统字典项列表(resource:0-查询索引 1-查询可用)

//新设备台账
export const productCategoryList = (params) => { return axios.post('api/v1.0/manager/product/category/list', params) } //查看产品类型
export const productCategoryInsert = (params) => { return axios.post('api/v1.0/manager/product/category/insert', params) } //新增产品类型
export const productCategoryUpdate = (params) => { return axios.post('api/v1.0/manager/product/category/update', params) } //修改产品类型
export const productCategoryDelete = (params) => { return axios.post('api/v1.0/manager/product/category/delete/'+params.productCategoryId) } //删除产品类型
//设备品牌
export const brandLibraryList = (params) => { return axios.post('api/v1.0/manager/brand/library/list/page', params) } //查看设备品牌
export const brandLibraryInsert = (params) => { return axios.post('api/v1.0/manager/brand/library/insert', params) } //新增设备品牌
export const brandLibraryUpdate = (params) => { return axios.post('api/v1.0/manager/brand/library/update', params) } //修改产品类型
export const brandLibraryDelete = (params) => { return axios.post('api/v1.0/manager/brand/library/delete/'+params.brandId) } //删除设备品牌
//设备台账
export const productAccountList = (params) => { return axios.post('api/v1.0/manager/product/account/list/page', params) } //查看设备品牌
export const productAccountInsert = (params) => { return axios.post('api/v1.0/manager/product/account/insert', params) } //新增设备台账
export const productAccountUpdate = (params) => { return axios.post('api/v1.0/manager/product/account/update', params) } //修改产品类型
export const productAccountDelete = (params) => { return axios.post('api/v1.0/manager/product/account/delete/'+params.brandId) } //删除设备品牌
//标签管理
export const labelList = (params) => { return axios.post('api/v1.0/manager/label/list', params) } //查看设备标签
export const labelAdd = (params) => { return axios.post('api/v1.0/manager/label/add', params) } //新增设备标签
export const labelUpdate = (params) => { return axios.post('api/v1.0/manager/label/update', params) } //修改设备标签
export const labelDelete = (params) => { return axios.post('api/v1.0/manager/label/delete/'+params.id) } //删除设备标签
export const labelSelect = (params) => { return axios.post('api/v1.0/manager/label/select/',params) } //设备标签下拉列表


//---------巡查计划------
export const getPatrolExamineList = (params) => { return axios.post('api/v1.0/manager/patrol/getPatrolExamineList', params) } //巡查检查项列表
export const addPatrolExamine = (params) => { return axios.post('api/v1.0/manager/patrol/addPatrolExamine', params) } //添加巡更检查项
export const deletePatrolExamine = (params) => { return axios.post('api/v1.0/manager/patrol/deletePatrolExamine', params) } //删除巡更检查项
export const updPatrolExamine = (params) => { return axios.post('api/v1.0/manager/patrol/updPatrolExamine', params) } //修改巡更检查项

export const getPatrolDotList = (params) => { return axios.post('api/v1.0/manager/patrol/getPatrolDotList', params) } //巡更点列表
export const addPatrolDot = (params) => { return axios.post('api/v1.0/manager/patrol/addPatrolDot', params) } //添加巡更点
export const deletePatrolDot = (params) => { return axios.post('api/v1.0/manager/patrol/deletePatrolDot', params) } //删除巡更点
export const updPatrolDot = (params) => { return axios.post('api/v1.0/manager/patrol/updPatrolDot', params) } //修改巡更点

export const getPatrolPathList = (params) => { return axios.post('api/v1.0/manager/patrol/getPatrolPathList', params) } //巡查路线列表
export const addPatrolPath = (params) => { return axios.post('api/v1.0/manager/patrol/addPatrolPath', params) } //巡查路线添加
export const deletePatrolPath = (params) => { return axios.post('api/v1.0/manager/patrol/deletePatrolPath', params) } //巡查路线删除
export const updPatrolPath = (params) => { return axios.post('api/v1.0/manager/patrol/updPatrolPath', params) } //巡查路线修改

//巡查计划
export const getPatrolTaskList = (params) => { return axios.post('api/v1.0/manager/patrol/getPatrolTaskList', params) } //日常巡查计划列表
export const updPatrolTask = (params) => { return axios.post('api/v1.0/manager/patrol/updPatrolTask', params) } //修改巡查计划
export const deletePatrolTask = (params) => { return axios.post('api/v1.0/manager/patrol/deletePatrolTask', params) } //删除巡查计划
export const addPatrolTask = (params) => { return axios.post('api/v1.0/manager/patrol/addPatrolTask', params) } //添加巡查计划

//巡查任务
export const patrolTaskListAll = (params) => { return axios.post('api/v1.0/manager/patrol/patrolTaskListAll', params) } //巡查任务列表
export const deleteTaskList = (params) => { return axios.post('api/v1.0/manager/patrol/deleteTaskList', params) } //删除巡查任务列表
export const updTaskListAll = (params) => { return axios.post('api/v1.0/manager/patrol/updTaskListAll', params) } //修改巡查任务列表
export const checkPatrolTask = (params) => { return axios.post('api/v1.0/manager/patrol/checkPatrolTask', params) } //审核巡查任务列表
export const sendTask = (params) => { return axios.post('api/v1.0/manager/patrol/sendTask', params) } //手动派单巡查任务
//巡查人员配置
export const xcgetInvestigatorsList = (params) => { return axios.post('api/v1.0/manager/patrol/getInvestigatorsList', params) } //巡查人员列表
export const xcaddInvestigators = (params) => { return axios.post('api/v1.0/manager/patrol/addInvestigators', params) } //巡查人员添加
export const xcdeleteInvestigators = (params) => { return axios.post('api/v1.0/manager/patrol/deleteInvestigators', params) } //巡查人员删除
export const xcupdInvestigators = (params) => { return axios.post('api/v1.0/manager/patrol/updInvestigators', params) } //巡查人员修改
//配置工单环节
export const workOrderlist = (params) => { return axios.post('/api/v1.0/manager/patrol/workOrder', params) } // 配置工单环节列表

//报警跳转相关接口
export const spaceDeviceInfo = (params) => { return axios.post('/api/v1.0/manager/space_device/info/'+params.subsystemCode+'/'+params.deviceId) } // 
// /api/manager/manager/space_device/info/{subsystemCode}/{deviceId}


//========================统计=====================
export const statisticsDevice = (params) => { return axios.post('/api/v1.0/manager/index/statistics/device', params) } // 首页子系统在线离线统计。
export const statisticsDeviceSummary = (params) => { return axios.post('/api/v1.0/manager/index/statistics/device/summary', params) } // 首页子系统在线离线统计。
export const statisticSenergy = (params) => { return axios.post('/api/v1.0/manager/index/statistics/energy', params) } // 能耗统计。

export const statisticsectionDevice = (params) => { return axios.post('/api/v1.0/manager/index/statistics/section/device/'+params.modelId) } // 区域设备统计(设备树状+设备占比统计)。
export const statisticentranceGuard = (params) => { return axios.post('/api/v1.0/manager/index/statistics/entrance_guard' ,params) } // 门禁统计
export const statisticentparkingLot = (params) => { return axios.post('/api/v1.0/manager/index/statistics/parking_lot' ,params) } // 停车场统计
export const statisticentoperation = (params) => { return axios.post('/api/v1.0/manager/index/statistics/operation' ,params) } // 运维统计
export const statisticentenergy = (params) => { return axios.post('/api/v1.0/manager/index/statistics/energy' ,params) } // 能耗统计

export const getSensePointBySecId = (params) => { return axios.post('/api/v1.0/manager/sense/list/page', params) }


// 麦驰门禁
export const getAcsSelect = (params) => { return axios.post('/api/v1.0/driver/michoi/device/page', params) }
// 同步第三方门禁设备
export const JieShunEquipment = (params) => { return axios.post('/api/v1.0/manager/jieshun/acs/equipment2', params) }
// 同步人员门禁信息
export const JieShunPersonnelInformation = (params) => { return axios.post('/api/v1.0/manager/jieshun/acs/querydoors', params) }

// 远程开门
export const SetInsertDoorLog = (devId) => { return axios.post(`/api/v1.0/driver/michoi/remoteOpenDoor/${devId}`) }
// 获取开门日志
export const getInsertDoorLog = (params) => { return axios.post('/api/v1.0/driver/michoi/open/door/log', params) }
// 删除门禁设备
export const deleteAcsDvice = (params) => { return axios.post('/api/v1.0/manager/jieshun/acs/delete', params) }

// 停车场进出记录
export const getCarRecordInfo = (params) => { return axios.post('/api/v1.0/manager/car_jieshun/carRecordInfo', params) }
// 缴费记录查询
export const getPayFeeList = (params) => { return axios.post('/api/v1.0/manager/car_jieshun/parkChargeList ', params) }
// 订单记录查询
export const getCarFeeList = (params) => { return axios.post('/api/v1.0/manager/car_jieshun/carFeeList', params) }
// 报警记录
export const getCarDevLogList = (params) => { return axios.post('/api/v1.0/manager/car_jieshun/carDevLogList', params) }
// 停车场信息
export const getCarSpaceInfo = (params) => { return axios.post('/api/v1.0/manager/car_jieshun/carSpaceInfo', params) }
// 车场设备列表
export const getCarDevList = (params) => { return axios.post('/api/v1.0/manager/car_jieshun/carDevList', params) }

//安居宝对讲系统
//设备列表获取
export const getCisSelect = (params) => { return axios.post('/api/v1.0/manager/anjubao/device/page', params) }
// 对讲开门
export const AnJuBaoOpenDoor = (devId) => { return axios.post(`/api/v1.0/manager/anjubao/remoteOpenDoor/${devId}`) }
// 获取开门日志
export const getAnJuBaoInsertDoorLog = (params) => { return axios.post('/api/v1.0/manager/anjubao/open/door/log', params) }
// 获取对讲日志
export const getAnJuBaoCisLog = (params) => { return axios.post('/api/v1.0/driver/michoi/trouble/log', params) }

//安全用电
export const getEleInfo = (params) => { return axios.post('/api/manager/manager/monitor/tjtxEle/getEleInfo', params) }
//修改设备名
export const updateEleInfo = (params) => { return axios.post('/api/manager/manager/monitor/tjtxEle/updateEleInfo', params) }

//烟感系统
//同步赋安设备
export const SynchronousSense = (projectId) => { return axios.post(`/api/manager/manager/sense/sync/device/${projectId}`) }
//烟感日志
export const getSenseLog = (params) => { return axios.post('/api/v1.0/driver/michoi/alarm/log', params) }
//修改设备信息
export const updateSense = (params) => { return axios.post('/api/manager/manager/sense/update', params) }

//获取监控设备列表
export const getMonitoringList = (params) => { return axios.post('/api/manager/manager/monitor/getHkDevList', params) }
// export const getMonitoringList = (params) => { return axios.post('http://192.168.0.35:8088/app/getHkDevList', params) }



//获取实时监控
export const getLiveMonitoring = (indexCode) => { return axios.post(`/api/manager/manager/monitor/getHkDevIsOnline/${indexCode}`) }
//监控云台控制
// export const doHkControlNo = (cameraIndexCode) => { return axios.post(`/api/manager/manager/monitor/doHkControlNo/${cameraIndexCode}`) }
export const doHkControl = (params) => { return axios.post('/api/manager/manager/monitor/doHkControl', params) }

// 广播系统

// 获取终端设备列表
export const getTerminalsList = (params) => { return axios.post('/api/v1.0/manager/qinchengda/acs/get/terminals/page', params) }
// 同步终端信息
export const syncTerminalsEquipment = (params) => { return axios.post('/api/v1.0/manager/qinchengda/acs/sync/terminals', params) }
// 终端详情查询
export const getTerminals = (params) => { return axios.post('/api/v1.0/manager/qinchengda/acs/get/terminals/list', params) }


// 播放任务状态（测试版）
export const getTerminalsstate = (params) => { return axios.post('/api/v1.0/manager/qinchengda/acs/remote/play/state', params) }
// 获取终端音频列表
export const getTerminalsmsg = (params) => { return axios.post('/api/v1.0/manager/qinchengda/acs/music/list', params) }
// 获取正在执行的任务
export const getTerminalsmaking = (params) => { return axios.post('/api/v1.0/manager/qinchengda/acs/inthe/making', params) }
